package com.mdd.admin.service.order;

import com.mdd.admin.validate.order.DeliveryInfoCreateValidate;
import com.mdd.admin.validate.order.DeliveryInfoSearchValidate;
import com.mdd.admin.validate.order.DeliveryInfoUpdateValidate;
import com.mdd.admin.vo.order.DeliveryInfoDetailVo;
import com.mdd.admin.vo.order.DeliveryInfoListedVo;
import com.mdd.common.base.page.PageValidate;
import com.mdd.common.core.PageResult;

/**
 * 租赁交易信息服务接口类
 * @author LikeAdmin
 */
public interface IDeliveryInfoService {

    /**
     * 租赁交易信息列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<OrderDeliveryInfoListedVo>
     */
    PageResult<DeliveryInfoListedVo> list(PageValidate pageValidate, DeliveryInfoSearchValidate searchValidate);

    /**
     * 租赁交易信息详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return OrderDeliveryInfoDetailVo
     */
    DeliveryInfoDetailVo detail(Long id);

    /**
     * 租赁交易信息新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(DeliveryInfoCreateValidate createValidate);

    /**
     * 租赁交易信息编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(DeliveryInfoUpdateValidate updateValidate);

    /**
     * 租赁交易信息删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Long id);

}
